package com.niiwoo.civet.trade.service.dubbo.newRefund;

import com.alibaba.dubbo.config.annotation.Service;
import com.niiwoo.civet.trade.service.local.newRefund.dispatch.RefundHelperLocalService;
import com.niiwoo.civet.trade.service.local.newRefund.penalty.PenaltyHandlerJobService;
import com.niiwoo.civet.trade.service.newRefund.RefundHelperDubboService;
import org.springframework.beans.factory.annotation.Autowired;

@Service(version = "1.0.0")
public class RefundHelperDubboServiceImpl implements RefundHelperDubboService
{

    @Autowired
    protected RefundHelperLocalService refundHelperLocalService;
    @Autowired
    private PenaltyHandlerJobService penaltyHandlerJobService;

    @Override
    public void partialRefund() { refundHelperLocalService.partialRefund();}


    @Override
    public void fullRefund() { refundHelperLocalService.fullRefund();}


    @Override
    public void compensatoryRefund() { refundHelperLocalService.compensatoryRefund();}


    @Override
    public void withhold() { refundHelperLocalService.withhold();}

    @Override
    public void withholdForOverdue50Day() { refundHelperLocalService.withholdForOverdue50Day();}

    @Override
    public void withholdSupplement() { refundHelperLocalService.withholdSupplement();}

    @Override
    public void accountingSupplement() {refundHelperLocalService.accountingSupplement(); }

    @Override
    public void repeatUpdatePenaltyFee() {
        penaltyHandlerJobService.repeatUpdatePenaltyFee();
    }

    @Override
    public void cutDateForOverduePenalty() {
        penaltyHandlerJobService.cutDayForOverduePenalty();
    }
    @Override
    public void calcPenaltyForProjectForWeb(Long projectId){
        penaltyHandlerJobService.calcPenaltyForProjectForWeb(projectId);
    }

    @Override
    public void accDetailSupplement() {refundHelperLocalService.accDetailSupplement(); }

    @Override
    public void testCompensatoryRefund(String projectIds){refundHelperLocalService.testCompensatoryRefund(projectIds);}

    @Override
    public void testWithhold(String projectIds) {refundHelperLocalService.testWithhold(projectIds);}

    @Override
    public void testRefund(String isFull,String projectIds) {refundHelperLocalService.testRefund(isFull,projectIds);}
}
